import request from '@/utils/request'

// 查询次数变更流水列表
export function listNumChange(query) {
  return request({
    url: '/ai/numChange/list',
    method: 'get',
    params: query
  })
}

// 查询次数变更流水详细
export function getNumChange(changeId) {
  return request({
    url: '/ai/numChange/' + changeId,
    method: 'get'
  })
}

// 新增次数变更流水
export function addNumChange(data) {
  return request({
    url: '/ai/numChange',
    method: 'post',
    data: data
  })
}

// 修改次数变更流水
export function updateNumChange(data) {
  return request({
    url: '/ai/numChange',
    method: 'put',
    data: data
  })
}

// 删除次数变更流水
export function delNumChange(changeId) {
  return request({
    url: '/ai/numChange/' + changeId,
    method: 'delete'
  })
}
